global[Symbol.for('foo')] = { foo: 'world' };

const a = require('./mod2.js');
console.log(a);